<!DOCTYPE html>
<html lang="" style="font-size: 6.624px;" ref="myHeading">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1,minimum-scale=1.0, maximum-scale=1, user-scalable=no, height=device-height,viewport-fit=cover">

    <meta name="theme-color" content="#343941" />
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="default">
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0"> 
    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
    <!-- 使用CDN的CSS文件 -->
    <% for (var i in htmlWebpackPlugin.options.cdn &&
    htmlWebpackPlugin.options.cdn.css) { %>
    <link
            href="<%= htmlWebpackPlugin.options.cdn.css[i] %>"
            rel="stylesheet"
    />
    <% } %>
    <!-- 使用CDN的CSS文件 -->
    <title>新春福利</title>
  </head>
  <body>
    <noscript>
      <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
    </noscript>
    <div id="app"></div>
    <!-- built files will be auto injected -->
    <!-- 使用CDN的JS文件 -->
    <% for (var i in htmlWebpackPlugin.options.cdn &&
    htmlWebpackPlugin.options.cdn.js) { %>
    <script src="<%= htmlWebpackPlugin.options.cdn.js[i] %>"></script>
    <% } %>
    <!-- 使用CDN的JS文件 -->
  </body>
  <script>
    var meta = document.querySelector('meta[name="theme-color"]');  
    meta.setAttribute('content', '#FFC97D');  
    (function flexible(window, document) {
    function resetFontSize() {

      const minFontSize = 5;
      const maxFontSize = 16;
      const baseSize = (document.documentElement.clientWidth / 750) * 12;
      const size = Math.min(Math.max(baseSize, minFontSize), maxFontSize);
      
      document.documentElement.style.fontSize = size + 'px';
      document.body.style.visibility = 'visible';

      
    }
    
    // reset root font size on page show or resize
    window.addEventListener('pageshow', resetFontSize);
    window.addEventListener('resize', resetFontSize);
  })(window, document);
  </script>
  <!-- <script src="https://o.alicdn.com/captcha-frontend/aliyunFP/fp.min.js"></script> -->
  <!-- <script>
    let umModule;
    let deviceToken;
    ALIYUN_FP.use('um', (state, um) => {
      if (state === 'loaded') {
        umModule = um;
        um.init({
            appKey: 'sha62cb719hse757df1d9c6a698a01ae',
            appName: 'bijie'
            //endpoints : ['https://cloudauth-device.aliyuncs.com']
        }, (initStats) => {
          if (initStats === 'success') {

            deviceToken = umModule.getToken();
            localStorage.setItem("deviceToken", deviceToken);
            //如果需要init完成就获取token，则在这里获取。
            //deviceToken = umModule.getToken();
          }
        });
      }
    });
  </script> -->
  <!-- <script>
    function getIos(){
      var u = window.navigator.userAgent;
      return !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
    }
    function setDeviceMotion(cb,errCb){ if(!window.DeviceMotionEvent){
        errCb("设备不支持DeviceMotion");
        return;
      }

      if (typeof DeviceMotionEvent.requestPermission === 'function') {
      // IOS 13
        DeviceMotionEvent.requestPermission()
        .then(permissionState => {
          if (permissionState === 'granted') { window.addEventListener('devicemotion',cb);
          }
        })
        .catch((err)=>{
          errCb("用户未允许权限");
        });
      } else {
        // 其他支持加速度检测的系统
        let timer = setTimeout(function(){ errCb("用户未开启权限");
        },1000);
        window.addEventListener("devicemotion",(e)=>{ clearTimeout(timer);
        },{once:true}); window.addEventListener("devicemotion",cb);
      }
    }

    document.ontouchstart=function(){ setDeviceMotion((e)=>{

    let motion = e.acceleration; let {x,y,z} = motion; if(!getIos()){

    x = -x;

    y = -y;

    z = -z;

    }

    },(errMessage)=>{ alert(errMessage);

    }); // 最后这里一定要注意，在IOS 13.3中必须通过用户操作去获取该权限

    }
  </script> -->
  <!-- <script>
    if (typeof DeviceOrientationEvent.requestPermission === 'function') {
    DeviceOrientationEvent.requestPermission()
        .then(permissionState => {
          if (permissionState === 'granted') {
            // handle data
          } else {
			// handle denied
          }
        })
        .catch((err) => {
            console.log(err)
        });
    } else {
      // han
      console.log(typeof DeviceOrientationEvent)
    }
  </script> -->
  <!-- <script src="https://cdn.bootcss.com/eruda/1.5.2/eruda.min.js"></script> -->
  <!-- <script>eruda.init();</script>  -->
</html>
